home *** CD-ROM | disk | FTP | other *** search
/ Best of www.BestZips.com (Collector's Edition) / Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO / gamebord / wak02.zip / WAK.H < prev    next >
C/C++ Source or Header  |  1996-05-04  |  3KB  |  115 lines

  1. /**************************************************************************
  2.  
  3.             Main include file for word-tachistoscope
  4.  
  5. **************************************************************************/
  6.  
  7. #define MIN_ARG_CNT 1
  8. #define FILENAMELEN 30
  9.  
  10. #define SMALL_TEXT_SIZE 1
  11.  
  12. #define INCREMENT 1
  13. #define BIG_INCREMENT 10
  14. #define MAXINTERVAL 10000
  15. #define FREQ2PERIOD 1000.0
  16.  
  17. #define X_COORD 320
  18. #define Y_COORD 240
  19. /*******position of displayed words*****/
  20. #define X_FREQ_COORD 600
  21. #define Y_FREQ_COORD 10
  22. /*******position of refresh freq.******/
  23.  
  24. /**********Top Display*****************/
  25. #define TOP_COLOR LIGHTGREEN
  26. #define TX1 0
  27. #define TX2 639
  28. #define TY1 45
  29. #define TY2 TY1
  30.  
  31. #define TLX 33
  32. #define TLY 15
  33. #define TMX 311
  34. #define TMY TLY
  35. #define TRX 526
  36. #define TRY TLY
  37. #define TOFFSET 30
  38. #define TROFFSET 8
  39. #define TCOMPOFFSET 19
  40. #define TMWORD "words"
  41. #define TRWORD "Speed Units"
  42. /*************************************/
  43.  
  44. /********Bottom Display***************/
  45. #define BOTTOM_COLOR LIGHTGREEN
  46. #define BX1 0
  47. #define BX2 639
  48. #define BY1 455
  49. #define BY2 BY1
  50.  
  51. #define BLX 8
  52. #define BLY 455
  53. #define BMX 269
  54. #define BMY BLY
  55. #define BRX 550
  56. #define BRY BLY
  57. #define LWORD "[f] [F] Faster"
  58. #define MWORD "[s] [S] Slower"
  59. #define RWORD "[ESC] Quit"
  60. /************************************/
  61.  
  62. #define DEFAULT_INTERVAL 333
  63. /*******How long word is displayed******/
  64. /***** 333 ~~ 1/3 second ********/
  65. /****** 95 also try *************/
  66.  
  67. #define TEXT_SIZE 4
  68. /********size of displayed words*******/
  69.  
  70. #define MAXWORDLEN 40
  71. /***Max Length of word fetched from file***/
  72.  
  73. #define BACKGROUND_COLOR WHITE
  74.  
  75. #define ESC 27
  76. /*******ESCAPE key*****/
  77.  
  78. #define NUMLEN 11
  79.  
  80. #define FFACTOR .01
  81.  
  82. #define DEFAULT1 'd'
  83. #define DEFAULT2 'D'
  84.  
  85. #define QUIT 10
  86.  
  87. #define FFSYMBOL ">>"
  88. #define ADVANCEDIST 2500
  89. /****500 words forward (approx.)****/
  90. #define PAST_EOF -1L
  91.  
  92. typedef enum { FALSE, TRUE } Boolean;
  93.  
  94. struct Stats
  95.        {
  96.         long wds;
  97.         int interval;
  98.         float frequency;
  99.         float requested_freq;
  100.         unsigned total_seconds;
  101.         unsigned minutes;
  102.         unsigned seconds;
  103.         };
  104.  
  105. void display_word( char *Word );
  106. void graphics_setup( int Background_color );
  107. void exit__( struct Stats sta_ );
  108. void opening_screen( void );
  109. void top_display( void );
  110. char *top_stats( struct Stats tstats );
  111. void bottom_display( void );
  112. struct Stats getword( struct Parameters p );
  113. void erase( char *text, int font_name, int font_size, int xc, int yc );
  114. void countdown_screen( void );
  115.